<?php
/*! \brief
 * This is Class for define data migration setting
 * \author William Su
 */
class WFDataMigrate
{
    protected $strTableName;
    protected $strColNamePK;
    protected $strFuncNameConvertArrDataFrom;
    protected $assocSkipRecordColNameWithColValue = array();
    protected $strFuncNameCallBack;
    protected $isDataMigrate = true;
    
	public function __construct($strTableName, $strColNamePK, $strFuncNameConvertArrDataFrom = null){
        $this->strTableName = $strTableName;
        $this->strColNamePK = $strColNamePK;
        $this->strFuncNameConvertArrDataFrom = $strFuncNameConvertArrDataFrom;
    }
    public function setTableName($strTableName){
        $this->strTableName = $strTableName;
    }
    public function getTableName(){
        return $this->strTableName;
    }
    public function setColNamePK($strColNamePK){
        $this->strColNamePK = $strColNamePK;
    }
    public function setIsDataMigrate($booIsDataMigrate){
        $this->isDataMigrate = $booIsDataMigrate;
    }
    public function getColNamePK(){
        return $this->strColNamePK;
    }
    public function setFuncNameConvertArrDataFrom($strFuncNameConvertArrDataFrom){
        $this->strFuncNameConvertArrDataFrom = $strFuncNameConvertArrDataFrom;
    }
    public function getFuncNameConvertArrDataFrom(){
        return $this->strFuncNameConvertArrDataFrom;
    }
    public function setAssocSkipRecordColNameWithColValue($strSkipColName, $strSkipColValue){
        $this->assocSkipRecordColNameWithColValue[$strSkipColName] = $strSkipColValue;
    }
    public function getAssocSkipRecordColNameWithColValue(){
        return $this->assocSkipRecordColNameWithColValue;
    }
    public function setFuncNameCallBack($strFuncNameCallBack){
        $this->strFuncNameCallBack = $strFuncNameCallBack;
    }
    public function getFuncNameCallBack(){
        return $this->strFuncNameCallBack;
    }
    public function getIsDataMigrate(){
        return $this->isDataMigrate;
    }
}